-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changed deprecated keys and used cryptosigner #75
Conversation
Signed-off-by: Dariksha <[email protected]>
@lukpueh I have changed all the files you've mentioned , PTAL !! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!! This is almost complete. Can you please check the ci log and fix the errors? You can also run the test locally:
python3 run_demo_md.py
I few hints:
- The functionary keys in
create_layout.py
(key_bob and key_carl) are no longer key dictionaries butKey
objects now. You need to slightly adopt the way they are used in the rest of the script. - If you do change the commands in
README.md
, you'll also need to update the expected output inrun_demo_md.py
. But you can also leave that for a separate PR, as we discussed.
Signed-off-by: Dariksha <[email protected]>
owner_alice/create_layout.py
Outdated
key_dict = key.to_dict() | ||
key_dict["keyid"] = key.keyid | ||
|
||
return key_dict |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(edit: fix function name)
IMO it's okay to just import this internal method from in_toto:
# https://github.com/in-toto/in-toto/issues/663
from in_toto.models._signer import load_public_key_from_file
Signed-off-by: Dariksha <[email protected]>
Signed-off-by: Dariksha <[email protected]>
Hm. Tests are still failing. Feel free to debug, but this might be a bit tricky. I am happy to take over. |
Signed-off-by: Dariksha <[email protected]>
Signed-off-by: Dariksha <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice troubleshooting with the keyid change!! Thanks
Thank you @lukpueh working with this issue is so interesting. |
"Fixed issues #73 , #74 , #68 "
changed in readme.md and run_demo.py
in-toto-run with --key is now --signing-key
in-toto-record with --key is now --signing-key
in-toto-verify with --layout-keys is now --verification-keys
Used CryptoSigner instead of signer in create_layout.py and added module requirement in requirements.txt